package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.SysGetServerListTask.SysGetServerListResponse;
import com.smiier.skin.net.SysGetServerListTask.SysGetServerListTaskRequest;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取各服务地址
 * 
 * @author 杨文华
 * 
 */
public class SysGetServerListTask extends
		NetTask<SysGetServerListTaskRequest, SysGetServerListResponse> {

	public static class SysGetServerListTaskRequest extends ORequest {
		public long uid;
		public String appname = Constant.APP_NAME;
	}

	public static class SysGetServerListResponse extends OResponse {
		public SysServerList Res;
	}

	public static class SysServerList implements INoProguard {
		public String PicServer;
		public String SocketSession;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Sys.GetServerList";
		mRequestMethod = METHOD_GET;
	}

}
